package icu.ikuns.notice.client;

import icu.ikuns.notice.element.Department;
import icu.ikuns.notice.element.Employee;
import icu.ikuns.notice.observe.MyObserver;
import icu.ikuns.notice.observe.MySubject;
import icu.ikuns.notice.observe.User;

/**
 * @Author： Kimariyb
 * @Date：2022/05/26/18:22
 * @Description：
 */
public class Test {
    public static void main(String[] args) {
        System.out.println("软件开发194，程晨，5720193303");
        MySubject subject = new User();

        MyObserver observer1, observer2;
        observer1 =  new Employee();
        observer2 = new Department();

        subject.attach(observer1);
        subject.attach(observer2);
        subject.regist();
    }
}
